package com.springboot.dto;
//9个属性
public class FriendsList {
    private String logoLink;
    private String name;
    private String time;
    private int isRead;//1未读
    private String content;
    private int isPicture;//type=1图片
    private String doctorName;
    private String doctorTel;
    private String patientTel;

    public FriendsList(){}

    public FriendsList(String logoLink, String name, String time, int isRead, String content, int isPicture, String doctorName, String doctorTel, String patientTel) {
        this.logoLink = logoLink;
        this.name = name;
        this.time = time;
        this.isRead = isRead;
        this.content = content;
        this.isPicture = isPicture;
        this.doctorName = doctorName;
        this.doctorTel = doctorTel;
        this.patientTel = patientTel;
    }

    public String getLogoLink() {
        return logoLink;
    }

    public void setLogoLink(String logoLink) {
        this.logoLink = logoLink;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getIsPicture() {
        return isPicture;
    }

    public void setIsPicture(int isPicture) {
        this.isPicture = isPicture;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDoctorTel() {
        return doctorTel;
    }

    public void setDoctorTel(String doctorTel) {
        this.doctorTel = doctorTel;
    }

    public String getPatientTel() {
        return patientTel;
    }

    public void setPatientTel(String patientTel) {
        this.patientTel = patientTel;
    }

    @Override
    public String toString() {
        if(logoLink!=null)
        {
            logoLink=logoLink.replaceAll("","");
        }
        return "{" +
                "\"messageUrl\":\"" + logoLink + '\"' +
                ",\"name\":\"" + name + '\"' +
                ",\"messageTime\":\"" + time + '\"' +
                ",\"isRead\":\"" + isRead + '\"' +
                ",\"messageText\":\"" + content + '\"' +
                ",\"type\":\"" + isPicture + '\"' +
                ",\"doctorName\":\"" + doctorName + '\"' +
                ",\"doctorTel\":\"" + doctorTel + '\"' +
                ",\"id\":\"" + patientTel + '\"' +
                '}';
    }


    public String toString1() {
        return "{" +

                "\"isRead\":\"" + isRead + '\"' +
                '}';
    }
}
